projects
/
openwrt
/
openwrt.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ba84c36
)
prereq-build: limit python distutils check to <v3.12
author
Andre Heider
<
[email protected]
>
Mon, 9 Jan 2023 15:38:05 +0000
(16:38 +0100)
committer
Hauke Mehrtens
<
[email protected]
>
Thu, 24 Jul 2025 20:00:58 +0000
(22:00 +0200)
v3.12 won't have it anymore.
Signed-off-by: Andre Heider <
[email protected]
>
Link:
https://github.com/openwrt/openwrt/pull/16699
Signed-off-by: Robert Marko <
[email protected]
>
(cherry picked from commit
8191c8980f04087eaf2921dc327fff219999bd55
)
Link:
https://github.com/openwrt/openwrt/pull/19513
Signed-off-by: Hauke Mehrtens <
[email protected]
>
include/prereq-build.mk
patch
|
blob
|
history
diff --git
a/include/prereq-build.mk
b/include/prereq-build.mk
index c5df77e0b45c54a40b21b885da209353fc9c553e..94fc0f8e584295d170f34ae61a75e7e73519ebe5 100644
(file)
--- a/
include/prereq-build.mk
+++ b/
include/prereq-build.mk
@@
-197,7
+197,8
@@
$(eval $(call SetupHostCommand,python3,Please install Python >= 3.6, \
$(eval $(call TestHostCommand,python3-distutils, \
Please install the Python3 distutils module, \
- $(STAGING_DIR_HOST)/bin/python3 -c 'from distutils import util'))
+ printf 'from sys import version_info\nif version_info < (3, 12):\n\tfrom distutils import util' | \
+ $(STAGING_DIR_HOST)/bin/python3 -))
$(eval $(call TestHostCommand,python3-stdlib, \
Please install the Python3 stdlib module, \